import {frame} from 'frame';
import store from 'store';
import './style/index.less';
import grid from './grid';
import {searchlayer} from './search';
import {adjustlayer} from './adjust/index';
import check from '../certifyCheck/check';
export default module.extend(frame,{
    path:'appList',
    target:'#menu_appList',
    data:{
        head:[{
            type:'button',
            text:'查询',
            className:'j-search'
        },{
            type:'button',
            text:'下载',
            className:'j-download'
        }]
    },
    gridOption:grid,
    events:{
        'click .j-search':searchlayer,
        'click .j-adjust':adjustlayer,
        'click .j-verify':check        
    },
    onInit(){
        //获取标签类型
        this.self.request('post','api/getBusinessClass.do',function(res){
            res.unshift({
                c_id:'',
                c_key:'',
                c_name:'请选择'
            })
            store('labellist',res);
        })
    }
})